package net.ibizsys.eclipse.studio.file;

import java.io.File;

import net.ibizsys.eclipse.studio.util.FileKit;
import net.ibizsys.eclipse.studio.xml.IBizFile;

/**
 * 前台类文件构建器<主要指各类js、js文件,默认从pub项目copy到usr项目>
 * 
 * @author <a href='http://www.weibo.com/xjtoo' target='_blank'>Enmaai</a>
 */
public abstract class PFFileBuilder extends BaseFileBuilder
{
	@Override
	public boolean build(IBizFile baseFile)
	{
		File source = new File(baseFile.getUsrFilePath());
		File target = new File(baseFile.getUsrRealFilePath());

		return FileKit.copyFile(source, target);
	}
}
